//! Copyright 2012 NTH Technology, Inc.
//! All rights reserved
//!
#ifndef __BasicTypes_h__
#define __BasicTypes_h__

typedef   signed char       S8;
typedef   signed short int  S16;
typedef   signed int        S32;
typedef   signed __int64    S64;

typedef unsigned char       U8;
typedef unsigned short int  U16;
typedef unsigned int        U32;
typedef unsigned __int64    U64;


union uU16
{
    U16 _16;
    U8  _8[2];
};

union uS16
{
    S16 _16;
    S8  _8[2];
};

union uU32
{
    U32 _32;
    U16 _16[2];
    U8  _8[4];
};

union uS32
{
    S32 _32;
    S16 _16[2];
    S8  _8[4];
};

union uU64
{
    U64 _64;
    U32 _32[2];
    U16 _16[4];
    U8  _8[8];
};

union uS64
{
    S64 _64;
    S32 _32[2];
    S16 _16[4];
    S8  _8[8];
};

#define _TRUE_  1
#define _FALSE_ 0

#endif  // __BasicTypes_h__

